﻿using System;
using System.Reflection;
using Abp.AutoMapper;
using Abp.Modules;

namespace RMM
{
    [DependsOn(typeof(RMMCoreModule),typeof(AbpAutoMapperModule))]
    public class RMMApplicationModule : AbpModule
    {
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

            Configuration.Caching.Configure("WechatAccessToken", cache =>
            {
                cache.DefaultSlidingExpireTime = TimeSpan.FromMinutes(100);
            });
        }
    }
}
